package com.lw.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class HelloController {

    @GetMapping("/hello")
    public String hello(){
        return "hello";//跳转到hello.jsp
    }
    @GetMapping("/center")
    public String center(){
        return "center";//跳转到 center.jsp
    }
}


